package com.ddsfec.loginapi.user.service;

import com.ddsfec.loginapi.user.dao.UserDAO;
import com.ddsfec.loginapi.user.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UserDAO userDAO;

    public void insertUser(User user)throws Exception{
         userDAO.insertUser(user);
    }

    public User query( String name,String pwd){


       return userDAO.query(name,pwd);
    }

}
